writing a custom validation annotation